using System;

namespace sforceExplorer
{
	/// <summary>
	/// Summary description for UserCredentials.
	/// This class is used as a collection to support the login history
	/// and list box population on the login form.
	/// </summary>
	public class UserCredentials
	{
		private string _userName = "";
		private string _password = "";
		private string _keyName = "";
        private string _token = "";
		private int _index = 0;

		public string UserName
		{
			get {return _userName;}
			set { _userName = value; }
		}

		public string Password
		{
			get {return _password;}
			set { _password = value; }
		}

        public string Token
        {
            get { return _token; }
            set { _token = value; }
        }

		public override string ToString()
		{
			return UserName;
		}

		public UserCredentials(string userName, string password, string token, string keyName, int index)
		{
			_userName = userName;
			_password = password;
			_keyName = keyName;
			_index = index;
            _token = token;
		}
	}
}
